added Javascript basic game functions and jQuery styling