drawing game objects on canvas