Function for creating a player node
Added foreground node
Added player node to the foreground
Changed gravity