public boolean isPlayerOnMap(GameObject obj){
		try{ 

			if(data[(int)((obj.getX() + obj.getWidth()-2)/30)][(int)((obj.getY()-2)/30)] != null) return true;
			if(data[(int)((obj.getX() + obj.getWidth()/2)/30)][(int)((obj.getY()-2)/30)] != null) return true;
			if(data[(int)((obj.getX())/30)][(int)((obj.getY()-2)/30)] != null) return true;

			if(data[(int)((obj.getX() + obj.getWidth()-2)/30)][(int)((obj.getY()-2 + obj.getHeight())/30)] != null) return true;
			if(data[(int)((obj.getX() + obj.getWidth()/2)/30)][(int)((obj.getY()-2 + obj.getHeight())/30)] != null) return true;
			if(data[(int)((obj.getX())/30)][(int)((obj.getY()-2 + obj.getHeight())/30)] != null) return true;

		} catch(Exception e) {return false;}
		return false;
	}