function gameend()
{
if(ball.position.x>100 && ball.position.x<180 &&ball.position.y<240 || ball.position.x>310 && ball.position.x<360 &&ball.position.y<200 )
{
    console.log('endgame')
}
}
//Check for end GAME if the Kangaroo Object fall

Check for end GAME if the Kangaroo Object fall
Check for end GAME if the Kangaroo Object fall
function gameend()
{
if(ball.position.x>100 && ball.position.x<180 &&ball.position.y<240 || ball.position.x>310 && ball.position.x<360 &&ball.position.y<200 )
{
    console.log('endgame')
}
}
function gameend ( ) { if ( ball . position . x > 100 && ball . position . x < 180 && ball . position . y < 240 || ball . position . x > 310 && ball . position . x < 360 && ball . position . y < 200 ) { console . log ( 'endgame' ) } }
Check for end GAME if the Kangaroo Object fall
Check for end GAME if the Kangaroo Object fall