Object oriented Javascript game: DuckHunting